﻿using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.ComponentModel.DataAnnotations;
using System.Text;

namespace Zj.HttpCodeDemo.Domain.Entities
{
    public class News
        : BaseEntity
    {
        public News()
        {
            this.Tags = new Collection<Tag>();
        }
        public string Title { get; set; }
        public string Keyword { get; set; }
        public string Description { get; set; }
        public string Content { get; set; }

        public Byte[] RowVersion { get; set; }
        public virtual ICollection<Tag> Tags { get; set; }

        public Guid CategoryId { get; set; }
        public virtual Category Category { get; set; }

        public Guid UserId { get; set; }
        public virtual User User { get; set; }
    }
}
